<template>
	<div>
		<dialog :open="bopen" style="background-color:#1296db;">
			{{msg}}
		</dialog>
	</div>
</template>

<script>
	export default{
		data(){
			return{}
		},
		computed:{
			bopen(){
				return this.$store.state.erropen>0;
			},
			msg(){
				return this.$store.state.errmsg;
			}
		},
	mounted(){
		setInterval(()=>{
			this.$store.state.erropen-=1;
		},1000)
		console.log("errmsg:")
	}	
	}
	
	
</script>

<style>
</style>
